<?php
class UserMapper implements IDataMapper {
	
	public function mapRow($row) {
		$userDto = new UserDto();
		$userDto->setId($row['id']);
		$userDto->setEmail($row['email']);
		$userDto->setFirstName($row['firstName']);
		$userDto->setLastName($row['lastName']);
		$userDto->setRole($row['role']);
		$userDto->setNickName($row['nickName']);
		$userDto->setPassword($row['password']);
		$userDto->setFBUid($row['fbuid']);
		$userDto->setTaskType($row['tasktype']);
		return $userDto;
	}
}

?>
